﻿namespace BuzzX8.Xmpp.StreamElements.Factories
{
    public class StreamHeaderModel : DatagramElementModel
    {
        public StreamHeaderModel(PropertyDictionary parameters) : base(parameters)
        {
            SetDefaultValues();
        }

        private void SetDefaultValues()
        {
            StreamType = StreamType.Client;
            Version = "1.0";
        }

        public StreamType StreamType
        {
            get { return ModelParameters.Get<StreamType>("streamType"); }
            set { ModelParameters["streamType"] = value; }
        }

        public string Version
        {
            get { return ModelParameters.Get<string>("version"); }
            set { ModelParameters["version"] = value; }
        }
    }
}
